import { Controller, Get } from '@nestjs/common';
import { Department } from '../entities/depart.entity';
import { DepartmentService } from './depart.service';

@Controller('depart')
export class DepartmentController {
  constructor(private readonly departmentService: DepartmentService) {}
  @Get('list')
  findAll(): Promise<Department[]> {
    return this.departmentService.findAll();
  }
}
